package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文件附件信息表
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Getter
@Setter
@TableName("attachment")
public class Attachment extends Model<Attachment> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 业务编号
     */
	@TableField("business_id")
	private Long businessId;
    /**
     * 业务类型 1：方案 2：行业规范
     */
	@TableField("business_type")
	private Integer businessType;
    /**
     * 附件地址
     */
	@TableField("attachment_url")
	private String attachmentUrl;
    /**
     * 附件转图片地址
     */
	@TableField("attachment_picture")
	private String attachmentPicture;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
